<@t.html>
<@t.container title="管理员列表" >
  	       <!--operator-->
  	       <@t.btn_a name="增加管理员" icon="plus" href="admin/admin/toAdd"/>
  	       <@t.btn_b name="删除管理员" icon="trash" onclick="batchDeleteFun('admin/admin/delete');" />
  		   <@t.dt>
  		   		 <@t.dtheader>
						 <@t.column title="ID" />
						 <@t.column title="登录名" />
						 <@t.column title="昵称" />
						 <@t.column title="用户状态" />
						 <@t.column title="最近登录日期" />
						 <@t.column title="最近登录IP" />
						 <@t.column title="登录次数" />
						 <@t.column title="创建日期" />
				</@t.dtheader>
  			<@t.dtbody>
  				 <#list page.list as a>
                     <tr onclick="checkDataGridRow('${a.id}');">
                      	<td><input name='SelectedID' id="select_${a.id}" value="${a.id}" type="checkbox"></td>
                        <td>${a.id}</td>
                        <td>${a.loginName}</td>
                        <td>${a.name}</td>
                        <td><@t.code defVal="${a.state}" datas={"1":"正常", "2":"锁定"} /></td>
                        <td>${a.lastLoginDate}</td>
                        <td>${a.loginIp}</td>
                        <td>${a.loginCount}</td>
                        <td>${a.date}</td>
                        <td>
                        	<@t.btn_b name="删除" size="btn-xs" icon="trash" onclick="batchDeleteFun('admin/admin/delete','${a.id}');" />
							<@t.btn_a name="修改" size="btn-xs" icon="pencil" href="admin/admin/toAdd?id=${a.id}"/>
							<@t.btn_b name="分配角色" size="btn-xs" icon="asterisk" onclick="alertDiv('给*${a.name}*分配角色','admin/admin/toGrant?aid=${a.id}');" />
						</td>
                     </tr>
				 </#list>
  			</@t.dtbody>
  		</@t.dt>
  		<!--pager-->
  		<@t.back_pager objCount=page.totalRow pageSize=page.pageSize pageNum=page.pageNumber pageCount=page.totalPage></@t.back_pager>
  </@t.container>
<!-- dialog -->
<div id="dd"></div>
</@t.html>